package Day6Zuoye.Circle;

import Day6Zuoye.Graphical.Graphical;

public class TextGraphical {
    public static void main(String[] args) {
        Image image = new Triangle(10,12,14);
       image.area();
      image.perimeter();

        System.out.println("-----------------");

        Image image1 = new Rectangle(12,18);
        image1.perimeter();
        image1.area();

        System.out.println("-----------------");

       Image image2 = new Circular(8);
       image2.perimeter();
        image2.area();

        System.out.println("-----------------");

        Paint_Programs p = new Paint_Programs("伟哥");
        System.out.println("三角形");
        p.picture(image);
        System.out.println("长方形");
        p.picture(image1);
        System.out.println("圆");
        p.picture(image2);
    }
}
